package Lesson1;

import LessonData.Commodity01;
import LessonData.Employee01;

import javax.management.relation.InvalidRoleValueException;

public class Class01 {
    public static void main(String[] args) {
        Employee01 e1=new Employee01();
        e1.name = "张三";
        e1.job = "经理";
        e1.salary = 15000;

        Employee01 e2=new Employee01();
        e2.name = "李四";
        e2.job = "职员";
        e2.salary = 6000;

        System.out.println(e1.name+"  "+e1.job+"  "+e1.salary);
        System.out.println(e2.name+"  "+e2.job+"  "+e2.salary);


        Commodity01 bread=new Commodity01();
        bread.name = "面包";
        bread.price = 4.9;
        bread.address = "成都";
        bread.variety = "食品";

        Commodity01 TV=new Commodity01();
        TV.name = "电视";
        TV.price = 8900.9;
        TV.address = "成都";
        TV.variety = "电器";
        System.out.println(bread.name+"  "+bread.price+"  "+bread.address+"  "+bread.variety);
        System.out.println(TV.name+"  "+TV.price+"  "+TV.address+"  "+TV.variety);
    }

}
